import React from 'react'
import { connect } from 'react-redux'
import { Outlet } from 'react-router'
import { Card } from 'antd'
import './index.less'

class TableContent extends React.PureComponent {
  constructor (props) {
    super(props)
    this.state = {}
  }

  render () {
    const { height, width } = this.props
    return (
      <React.Fragment>
        <Card style={{ height }} height={height} width={width}>
          <Outlet/>
        </Card>
      </React.Fragment>
    )
  }
}

const mapStateToProps = (state) => {
  return {
    path: state.get('getPath')
  }
}
export default connect(mapStateToProps)(TableContent)